extends Node2D


# Declare member variables here. Examples:
# var a = 2
# var b = "text"

var particles = []

const NUMBER_TO_SPAWN = 200

# Called when the node enters the scene tree for the first time.
func _ready():
	randomize()
	for n in range(NUMBER_TO_SPAWN):
		var wn = WaterNode.new()
		wn.position = Vector2(
			rand_range(0,get_viewport_rect().size.x),
			rand_range(0,get_viewport_rect().size.y-60)
			)
		particles.append(wn)
		call_deferred("add_child",wn)
	get_viewport_rect()
	pass # Replace with function body.


# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
#	pass
